<!DOCTYPE html>
<html>

	<head>
		<title>我的消息</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
		<script src="/js/jquery/jquery.min.js"></script>
		<script src="/js/bootstrap/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="/css/font/css/font-awesome.min.css" />
		<link rel="stylesheet" href="/css/reset.css" />
		<link rel="stylesheet" href="/css/message.css" />
		<script src="/js/plugins/jrender/jrender.js"></script>
	</head>

	<body>
		<div class="search-head">
			<div class="row nav-search">
				<div class="col">
					<a href="javascript:history.go(-1);">
						<span><i class="fa fa-chevron-left" ></i></span>
					</a>
				</div>
				<div class="col">
					<span>我的消息</span>
				</div>
				<div class="col"></div>
			</div>
		</div>

		<ul class="list-group">
			<a href="likeMe.html">
				<li class="list-group-item d-flex justify-content-between align-items-center">
					<div class="item">
						<span><i class="fa fa-thumbs-o-up" ></i></span>
						<span>赞</span>
						<span class="badge badge-danger badge-pill likeNumber" ></span>
					</div>
					<i class="fa fa-chevron-right"></i>
				</li>
			</a>
			<a href="collectMy.html">
				<li class="list-group-item d-flex justify-content-between align-items-center">
					<div class="item">
						<span><i class="fa fa-star fa-2x" ></i></span>
						<span >收藏我的</span>
						<span class="badge badge-danger badge-pill enshrineNumber">2</span>
					</div>
					<i class="fa fa-chevron-right"></i>
				</li>
			</a>
			<a href="../index.html">
				<li class="list-group-item d-flex justify-content-between align-items-center">
					<div class="item">
						<span><i class="fa fa-commenting-o" ></i>	</span>
						<span>评论</span>
						<span class="badge badge-danger badge-pill commentNumber">1</span>
					</div>
					<i class="fa fa-chevron-right"></i>
				</li>
			</a>
			<a href="friend.html">
				<li class="list-group-item d-flex justify-content-between align-items-center">
					<div class="item">
						<span><i class="fa fa-envelope-o" ></i></span>
						<span>	私信</span>
						<span class="badge badge-danger badge-pill chatNumber">1</span>
					</div>
					<i class="fa fa-chevron-right"></i>
				</li>
			</a>
			<a href="messageconcent.html" id="system">
				<li class="list-group-item d-flex justify-content-between align-items-center">
					<div class="item">
						<span><i class="fa fa-bell" ></i></span>
						<span>好友通知</span>
						<span class="badge badge-danger badge-pill friendsNoticeNumber">1</span>
					</div>
					<i class="fa fa-chevron-right"></i>
				</li>
			</a>
		</ul>

			<div class="container systemMsg" >
					<dl class="itemList" render-loop="newslist">
						<dd>
							<p render-html="newslist.content">如果你无法简洁的表达你的想法，那只说明你还不够了解它。</p>
							<p render-html="newslist.mrname">-- 阿尔伯特·爱因斯坦</p>
							<p></p>
						</dd>
					</dl>
			</div>
	</body>
<script>
	//获取当前点评我的消息的数量
    $.get("/users/commentNumber",function (data) {
        $(".commentNumber").html(data.commenteNumber)
    });
	//获取当前好友通知数量
	$.get("/users/FriendsNoticeNumber",function (data) {
        $(".friendsNoticeNumber").html(data.friendsNoticeNumber)
    });
	$.get("/chat/number",function (data) {
        $(".chatNumber").html(data.chatNumber)
    });
	$.get("/travels/enshrine",function (data) {
        $(".enshrineNumber").html(data.enshrineNumber)
    });
	//回显点赞数量
    $.get("/travels/likeNumber",function (data) {
        console.log(data.likeNumber);
        $(".likeNumber").html(data.likeNumber)
    });
	//名言
    $.get("http://api.tianapi.com/txapi/dictum/",{key:"b5296557c799c00f0b2f2fbe87cd65ca",num:3},function (data) {
        $(".systemMsg").renderValues(data);
    });
    setInterval(function () {
        $.get("http://api.tianapi.com/txapi/dictum/",{key:"b5296557c799c00f0b2f2fbe87cd65ca",num:3},function (data) {
            $(".systemMsg").renderValues(data);
        })
    },1800000);
	function gettime() {
		
    }
</script>
</html>